Skip to content

fix(zero-trust): run platform changes in short steps so the cron resumes them - #921

Merged
Brooooooklyn merged 1 commit into
mainfrom
fix/zero-trust-reconcile-status
Nov 26, 2026
Merged

Brooooooklyn merged 1 commit into
mainfrom
fix/zero-trust-reconcile-status

Conversation

@Brooooooklyn

Copy link
Copy Markdown
Member

Problem

Found in a live Zero Trust test on a self-hosted install (40 projects). After the shared Access application was deleted on purpose, void platform zero-trust reconcile rebuilt it but:

CLI     ── waits the whole operation inline ──► 300 s timeout: "outcome may be unknown"
request ── cancelled mid-project, lease kept ──► 15 min lease blocks the cron and manual reconcile
status  ── "configuring" for ~22 min, then ready

Docs promise: "Large changes run in steps. Scheduled maintenance continues them within a few minutes."

Fix

  • Each request or cron run stops taking projects after 60 s (always after at least one project) and releases the operation, as it already did at the 100-project limit.
  • Operation lease 15 min → 5 min, so a lease left by a cancelled request frees fast. Revision checks still stop a slow runner from writing over a newer one.
  • The request arms the two-minute cron as soon as it holds the lease (a cancelled request never reaches the after-request hook). Hourly retries of a failed operation do not arm it.
  • CLI: a Zero Trust change that returns while still configuring/disabling prints that it is still running and to follow void platform zero-trust status; a timeout points to status instead of "outcome may be unknown".
  • Docs: steps behaviour in the CLI reference; the health-check exception covers /health and the paths under it (it never serves a project, so nothing was exposed).

Live check (same install, same test)

before (main) after
reconcile returns 300 s CLI timeout 72 s, "still applying…"
ready after start ~22 min ~4 min
protected projects during the change stayed protected stayed protected

Checks

  • New tests: run-step limit and release, cron resume after a step, lease expiry, hourly retry does not arm the fast cron, CLI still-running and timeout messages (failed first).
  • vp check clean, vp run test 182/182 groups.

🤖 Generated with Claude Code

…mes them

A platform Zero Trust reconcile, configure or disable ran the whole
operation inside one request. On a 40-project install that took longer
than the CLI's 300 s timeout; the cancelled request kept its 15-minute
lease, so the scheduled job could not continue the change until the
lease ran out.

Each run now stops taking projects after 60 s (always after at least
one) and releases the operation, the lease is 5 minutes, and a request
arms the two-minute cron as soon as it holds the lease. The CLI says the
change is still running and how to follow it. The docs describe the
health-check exception as /health and the paths under it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T02:53:42.020683Z 67a30f4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Brooooooklyn
Brooooooklyn merged commit b920d42 into main Nov 26, 2026
22 checks passed
@Brooooooklyn
Brooooooklyn deleted the fix/zero-trust-reconcile-status branch November 26, 2026 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant